package com.xinjie.www.service.post;

import com.xinjie.www.po.Post;

import java.sql.Date;
import java.sql.SQLException;
import java.util.List;

public interface PostService {
    public boolean writePost(String title, String tieba, String time, String content, String writer) throws SQLException, ClassNotFoundException;
    public List<Post> getOwnPost(String writer) throws SQLException, ClassNotFoundException;
    public List<Post> getAllPost(String managerName) throws SQLException, ClassNotFoundException;
    public boolean deletePost(int id,String tieba) throws SQLException, ClassNotFoundException;
    public List<Post> getPostList(String tieba) throws SQLException, ClassNotFoundException;
    public Post getPost(int postId) throws SQLException, ClassNotFoundException;
}
